#include "Object.h"


Object::Object()
{
 
}


Object::Object(int id, float x, float y)
{
	_id = id;
	_x = x;
	_y = y;
}

Object::Object(int id, float x, float y, int state)
{
	_id = id;
	_x = x;
	_y = y;
	_state = state;
}

Object::~Object()
{
	if (_sprite)
	{
		delete _sprite;
	}
	
}

Box Object::getBox()
{
	Box block(this->getPosX(),
			this->getPosY() - this->getHeight(),// - 0.11,
			this->getWidth(),
			this->getHeight()
			);
	return block;

}
 
void Object::Update(list<Object*> *_list,float gameTime)
{
	 
}
 
void Object::Render(int vpX, int vpY)
{
 
	_sprite->Render(_x, _y, vpX, vpY);
}

OBJECT_TYPE Object::getObjectType()
{
	return OBJECT_STATIC;
}



 